package com.reder.practice.dao;

import com.reder.practice.bean.Comment;
import com.reder.practice.vo.CommentVo;

import java.util.List;

/**
 * 评论持久层
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/20 16:05:06</p>
 */
public interface CommentDao {
    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<CommentVo> queryByVideoId(Long videoId);

    int incrCommentNum(long videoId);

    int descCommentNum(long videoId);
}